<html>
<head>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row">
        <div class="page-header text-center">
            <h2>未完成试卷</h2>
        </div>
    </div>

    <div class="row">
        <div class="col-md-8">
            <#if testList?size==0>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2 class="panel-title">Tips</h2>
                    </div>
                    <div class="panel-body">
                        <p>你全部试卷都已经完成啦</p>
                    </div>
                </div>
            </#if>

            <#assign index = 0>
            <#list testList as  tl>
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h2 class="panel-title">试卷名:${tl.testPaperName}</h2>
                        <h2 class="panel-title">出题老师:${teacherList[index].teacherName}</h2>
                    </div>
                    <div class="panel-body">
                        <a target="_blank" class="btn btn-info"
                           <#if "true"==timeList[index]>
                               href="/student/testpaper/showpage/${tl.testPaperId}"
                           <#else>
                               disabled="true"
                               style="pointer-events: none"
                           </#if>>开始做</a>
                    </div>
                </div>
                <#assign index = index+1>
            </#list>
        </div>
    </div>
</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<script>
    window.onload = function () {
        var today = new Date();
        //获取当前年
        var year=today.getFullYear();
        //获取当前月
        var month=today.getMonth()+1;
        //获取当前日
        var date=today.getDate();

        var orderDate = year+'-'+month+"-"+date;
    }
</script>

</html>